import { GET, POST } from "../api";
const indexUrl=  {
    'leftCenter':'/bigscreen/countUserNum',// 工单类型分布
    "centerMap":"/bigscreen/centerMap",
    "centerBottom":"/bigscreen/installationPlan",
    'leftBottom':"/bigscreen/leftBottom", // 智能体运行日志
    'rightCenter':'/bigscreen/ranking',// 工单涉及台区TOP10,工单涉及线路TOP10 
    'ai':'/bigscreen/ai',// ai接口请求
    'table':'/bigscreen/table',// 页面数据
}

export default indexUrl


/**工单类型分布 */
export const countUserNum=(param:any={})=>{
    return GET(indexUrl.leftCenter,param)
}

/**智能体运行日志 */
export const leftBottom=(param:any={})=>{
    return GET(indexUrl.leftBottom,param)
}

/**责任人签收/处理工单分布 */
export const installationPlan=(param:any={})=>{
    return GET(indexUrl.centerBottom,param)
}

/**工单涉及台区TOP10,工单涉及线路TOP10 */
export const ranking=(param:any={})=>{
    return POST(indexUrl.rightCenter,param)
}

/**ai */
export const aiApi=(data: any)=>{
    return POST(indexUrl.ai, data)
}

/**table */
export const tableApi=(data: any = {})=>{
    return POST(indexUrl.table, data)
}